<div class="scrollbox">
  <table>
    <thead>
      <tr>
        <th class="sturt-name">商品名称</th>
        <th class="sturt-num">数量</th>
        <th class="sturt-p">价格</th>
        <th class="sturt-ope">操作人</th>
        <th class="sturt-t">购买时间</th>
      </tr>
    </thead>
    <tbody>
      <% @orders.each do |order| %>
        <tr>
          <td><%= order.good.name %></td>
          <td><%= order.amount %></td>
          <td><%= order.real_price %></td>
          <td><%= order.employee.name if order.employee_id %></td>
          <td class="sturt-t">
            <span><%= order.created_at.strftime("%Y-%m-%d %H : %M") %></span>
          </td>
        </tr>
      <%end%>
    </tbody>
  </table>
  <div class="apple_pagination">
    <%= paginate @orders, :container => false %>
  </div>
</div>
